﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RFIDStockManagement.Model.Public
{
    public class UserInfo
    {
        private string _logName;
        private string _name;
        private int _id;
        private string _passwords;
        private DateTime _lastLoginTime;
        private DateTime _lastLogoutTime;
        private bool isMale;
        private string _telNo;
        private bool isAdmin;

        
        /// <summary>
        /// 是否管理员
        /// </summary>
        public bool IsAdmin
        {
            get { return isAdmin; }
            set { isAdmin = value; }
        }

        /// <summary>
        /// 电话号码
        /// </summary>
        public string TelNumber
        {
            get { return _telNo; }
            set { _telNo = value; }
        }

        /// <summary>
        /// 是否男性
        /// </summary>
        public bool IsMale
        {
            get { return isMale; }
            set { isMale = value; }
        }

        /// <summary>
        /// 最后登出时间
        /// </summary>
        public DateTime LastLogoutTime
        {
            get { return _lastLogoutTime; }
            set { _lastLogoutTime = value; }
        }

        /// <summary>
        /// 最后登录时间
        /// </summary>
        public DateTime LastLoginTime
        {
            get { return _lastLoginTime; }
            set { _lastLoginTime = value; }
        }

        /// <summary>
        /// 用户密码
        /// </summary>
        public string Passwords
        {
            get { return _passwords; }
            set { _passwords = value; }
        }

        /// <summary>
        /// 用户ID
        /// </summary>
        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        /// <summary>
        /// 用户姓名
        /// </summary>
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        /// <summary>
        /// 登录名
        /// </summary>
        public string LogName
        {
            get { return _logName; }
            set { _logName = value; }
        }
    }
}
